package com.aidong.home.controller.concern;

import com.aidong.carnival.controllers.concerns.View.Base;
import com.fasterxml.jackson.annotation.JsonView;

public class Success {
    @JsonView(Base.class)
    private int code;
    @JsonView(Base.class)
    private Object data;

    public Success() {
        this.code = 1;
    }

    public Success(Object data) {
        this.code = 1;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
